﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main1.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ProjectSem40701.Default1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
			<!-- gift -->	
			<div class="content_tab">
				<div class="content_tab_title"><span>Giải thưởng tuần này</span></div>
				<div class="content_tab1">
					<!-- gift slide -->
					<div id="featured" >
                        <ul class="ui-tabs-nav">
                            <asp:Repeater ID="dtlAward1" runat="server" 
                                DataSourceID="ObjectDataSource2" >
                                <ItemTemplate>
                                    <li class="ui-tabs-nav-item ui-tabs-selected" id="nav-<%# Eval("AwardID", "fragment-{0}") %>">
                                        <a href="<%# Eval("AwardID", "#fragment-{0}") %>">
                                            <span>
                                                <asp:Literal ID="ltrAward" runat="server" Text='<%# Eval("AwardName") %>'></asp:Literal>
                                            </span>
                                        </a>
                                    </li>
                                </ItemTemplate>
                            </asp:Repeater>        
                            <asp:Repeater ID="dtlAward23" runat="server" 
                                DataSourceID="ObjectDataSource3" >
                                <ItemTemplate>
                                    <li class="ui-tabs-nav-item" id="nav-<%# Eval("AwardID", "fragment-{0}") %>">
                                        <a href="<%# Eval("AwardID", "#fragment-{0}") %>">
                                            <span>
                                                <asp:Literal ID="ltrAward" runat="server" Text='<%# Eval("AwardName") %>'></asp:Literal>
                                            </span>
                                        </a>
                                    </li>
                                </ItemTemplate>
                            </asp:Repeater>                          
                        </ul>
                        
                        <asp:Repeater ID="dtlAwardDetail1" runat="server"
                            DataSourceID="ObjectDataSource2">
                            <ItemTemplate>
                                <div id="<%# Eval("AwardID", "fragment-{0}") %>" class="ui-tabs-panel" style="">
                                    <asp:Image ID="imgAward" runat="server" Height="188px" Width="300px" 
                                        ImageUrl='<%# Bind("AwardImage", "images/{0}") %>' />
							        <div class="info">
                                        <asp:HyperLink ID="linkAward" runat="server" 
                                            NavigateUrl='<%# Eval("AwardID", "AwardDetail.aspx?AwardID={0}") %>' 
                                            Text='<%# Eval("AwardName") %>'></asp:HyperLink>
								        <p>
                                            <asp:Literal ID="ltrAward" runat="server" OnDataBinding="ltrAwardDesc_DataBinding" 
                                                Text='<%# Eval("AwardDescription") %>'></asp:Literal>
                                            <asp:HyperLink ID="HyperLink2" runat="server" 
                                            NavigateUrl='<%# Eval("AwardID", "AwardDetail.aspx?AwardID={0}") %>' 
                                            Text="Xem tiếp"></asp:HyperLink>
                                        </p>
							        </div>
							    </div>
                            </ItemTemplate>
                        </asp:Repeater>
                        
						<asp:Repeater ID="dtlAwardDetai23" runat="server"
                            DataSourceID="ObjectDataSource3">
                            <ItemTemplate>
                                <div id="<%# Eval("AwardID", "fragment-{0}") %>" class="ui-tabs-panel ui-tabs-hide" style="">
                                    <asp:Image ID="imgAward" runat="server" Height="188px" Width="300px" 
                                        ImageUrl='<%# Bind("AwardImage", "images/{0}") %>' />
							        <div class="info">
                                        <asp:HyperLink  NavigateUrl='<%# Eval("AwardID", "AwardDetail.aspx?AwardID={0}") %>'  
                                            ID="linkAward" runat="server"
                                            Text='<%# Eval("AwardName") %>'></asp:HyperLink>
								        <p>
                                            <asp:Literal ID="ltrAward" runat="server" OnDataBinding="ltrAwardDesc_DataBinding" 
                                                Text='<%# Eval("AwardDescription") %>'></asp:Literal>
                                            <asp:HyperLink NavigateUrl='<%# Eval("AwardID", "AwardDetail.aspx?AwardID={0}") %>'
                                              ID="HyperLink2" runat="server" 
                                            Text="Xem tiếp"></asp:HyperLink>
                                        </p>
							        </div>
							    </div>
                            </ItemTemplate>
                        </asp:Repeater>
						
					    <asp:ObjectDataSource ID="ObjectDataSource3" runat="server" 
                            OldValuesParameterFormatString="original_{0}" 
                            SelectMethod="Get_tbl_Award_Select_Top3_Active_Current" 
                            
                            TypeName="ProjectSem40701.MainDataset.AwardTableAdapters.tbl_Award_Select_Top4_Active_CurrentTableAdapter">
                        </asp:ObjectDataSource>
						
					    <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" 
                            OldValuesParameterFormatString="original_{0}" 
                            SelectMethod="Get_tbl_Award_Select_Top1_Active_Current" 
                            TypeName="ProjectSem40701.MainDataset.AwardTableAdapters.tbl_Award_Select_Top4_Active_CurrentTableAdapter">
                        </asp:ObjectDataSource>
						
					</div>


					<!-- end gift -->
				</div>
			</div>
				
			<!-- end gift -->
			
			<!-- news -->	
			<div class="content_tab">
				<div class="content_tab_title"><span>Sự kiện tuần này</span></div>
				<div class="content_tab1">
					<div align="left" id="mynewsdis">
						<div class="news_border">
							<div id="showhere" class="news_show"></div>
						</div>
						<div class="buttondiv" id="news_button">
							<img src="images/prev.gif" align="absmiddle" id="news_prev" />
							<img src="images/pause.gif" align="absmiddle" id="news_pause" />
							<img src="images/next.gif" align="absmiddle" id="news_next" />
						</div>
						<div class="news_mark"><div id=news_display class=news_title></div>
						</div>
					</div>
				</div>
			</div>
			<!-- end news -->
			
			<!-- news data -->
            <div id="mynews">
	            <asp:DataList ID="dtlEvent" runat="server" DataKeyField="ArticleID" 
                    DataSourceID="ObjectDataSource1" RepeatLayout="Flow">
                    <ItemTemplate>
                        <div class="news_style">
		                    <table class="mytable">
			                    <tr>
				                    <td>                
                                        <asp:HyperLink ID="HyperLink1" runat="server" 
                                                NavigateUrl='<%# Eval("ArticleID", "ArticleDetail.aspx?ArticleID={0}") %>'> 
                                            <asp:Image ID="Image1" runat="server" Height="60px" 
                                                ImageUrl='<%# Eval("ArticleImage", "~/images/{0}") %>' Width="80px" ImageAlign="Left" />
                                            <asp:Literal ID="ltrDesc" runat="server" 
                                                Text='<%# Eval("ArticleDescription") %>' OnDataBinding="ltrDesc_DataBinding">
                                            </asp:Literal>
                                        </asp:HyperLink>      
                                    </td>
			                    </tr>
		                    </table>  
		                </div>                                        
                    </ItemTemplate>
                </asp:DataList>
                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                    OldValuesParameterFormatString="original_{0}" 
                    SelectMethod="Get_tbl_Article_Select_Top4_Active_Sukien" 
                    TypeName="ProjectSem40701.MainDataset.ArticleTableAdapters.tbl_ArticleTableAdapter">
                </asp:ObjectDataSource>
            </div>
    <!-- news data -->	


	<!-- tin tuc -->	
		<div class="content_tab">
		
			<div class="content_tab_title"><span>Bài giảng</span></div>
			<div class="content_tab1">
					
                <asp:Repeater ID="Repeater1" runat="server" DataSourceID="ObjectDataSource4">
                    <ItemTemplate>
                        <!-- one news -->
					    <div class="one_news">	
						    <div class="img_news">
                                <asp:Image ID="imgNews" ImageUrl='<%# Eval("ArticleImage", "~/images/{0}") %>' runat="server" Width="62" />
						    </div>
						    <div class="content_one_news">
                                <asp:Literal ID="ltrDesc" Text='<%# Eval("ArticleDescription") %>' OnDataBinding="ltrDesc_DataBinding" runat="server"></asp:Literal>
						        <asp:HyperLink ID="linkReadMore" class="more" runat="server" 
                                    NavigateUrl='<%# Eval("ArticleID", "ArticleDetail.aspx?ArticleID={0}") %>' Text="Đọc tiếp &raquo;" Font-Size="12px">
                                </asp:HyperLink>
						    </div>
					    </div>
					    
                    </ItemTemplate>
                </asp:Repeater>
					
				<asp:ObjectDataSource ID="ObjectDataSource4" runat="server" 
                    OldValuesParameterFormatString="original_{0}" 
                    SelectMethod="Get_tbl_Article_Baigiang_Select_Top5" 
                    TypeName="ProjectSem40701.MainDataset.ArticleTableAdapters.tbl_ArticleTableAdapter">
                </asp:ObjectDataSource>
					
			</div>
		
		</div>
	<!-- end tin tuc -->
		
</asp:Content>
